<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php 
			echo (!empty($title_for_layout_cms)) ? $title_for_layout_cms : $title_for_layout; 			
		?>
	</title>
	<meta name="Language" content="<?php echo Configure::read('Config.language');?>" />	
	<?php
		echo $this->Html->meta('keywords', $keywords_for_layout_cms);echo "\n";
		echo $this->Html->meta('description', $description_for_layout_cms);echo "\n";
	?>	
	<?php echo $this->Html->script(
		array(
			'jquery-1.4.3.min'
			,'jquery-ui-1.8.10.custom.min'
			,'jquery.easing.1.2.js'
// 			,HOST.'/hoverIntent'
// 			,HOST.'/jquery.bgiframe.min'
// 			,HOST.'/superfish'
// 			,HOST.'/supersubs'	
			,HOST.'/jquery.nivo.slider.pack'
	)); 
	?>
	

	<?php 
		echo $this->Html->css(array(
			HOST.'/reset'
			,HOST.'/grid'
			,HOST.'/style'
			,HOST.'/superfish'
			,HOST.'/superfish-navbar'
			,HOST.'/nivo.slider/nivo-slider'			
			,'custom-theme/jquery-ui-1.8.16.custom'
			,'highslide/highslide'
			
		));
	?>
	
		
	<?php
		echo $scripts_for_layout;
	?>	
	
	<?php 
	if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){

		echo $this->Html->css(array(HOST.'/dictionary',HOST.'/form',HOST.'/actions'),null,array('inline'=>true));
		echo $this->Html->script(array('highslide-full'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>true));		
		echo $javascript->codeBlock("
			hs.graphicsDir = '/css/highslide/graphics/';
			hs.outlineType = 'rounded-white';
			hs.wrapperClassName = 'draggable-header';
			hs.align = 'center';
		",$options = array('allowCache'=>false,'safe'=>false,'inline'=>true));
	}
	?>
	<?php echo $google->analytics;?>
</head>


		<?php 
			$alert = $this->Session->flash();
			$alert .= $this->Session->flash('auth');
			$alert .= $this->Session->flash('email');
			echo $alert;
		?>

	<?php 
		if(!empty($alert))
		echo $this->Js->dialog('.alerts',array('modal'=>true,'height'=> 140),array('allowCache'=>true,'safe'=>false,'inline'=>true));
	?>
	<?php  echo $content_for_layout;?>	

	
	
<?php echo $this->element('sql_dump');?>
<?php echo $this->Js->writeBuffer();?>


</html>